package com.order.feign;

import com.common.Result;
import com.order.feign.dto.StorageDTO;
import com.order.feign.fallback.StorageCallFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "demo-storage",fallback = StorageCallFallback.class)
public interface StorageServiceFeignClient {
    @PostMapping("/storage/reduce")
    Result<?> reduceStock(@RequestBody StorageDTO productReduceStockDTO);
}
